
//#include <QtWidgets>
#include "bmmanager.h"

// CONSTRUCTOR.
//BMManager::BMManager(QWidget *parent)
  //  : QMainWindow(parent)
//{

//}

BMManager::BMManager()
{
/*
    setStyleSheet("QMainWindow{"
                        "margin: 0px;}"
                  "QWidget{"
                        "color: #000000;}"
                  "QPushButton {"
                        "border: 0px;"
                        "border-radius: 3px;"
                        "font: bold 14px;"
                        "padding: 3px 0px;}"
                  "QTabWidget::pane {"
                        "border: 1px solid #666666;"
                        "border-top: 0px;}"
                  "QTabBar::tab {"
                        "background-color: #ffffff;"
                        "border-bottom: 0px;"
                        "border-top-left-radius: 3px;"
                        "border-top-right-radius: 3px;"
                        "min-width: 50px;"
                        "padding: 4px 10px;}"
                  "QTabBar::tab:selected {"
                        "background: #666666;"
                        "color: #ffffff;}"
                  "QTabBar::tab:!selected {"
                        "background: #ffffff;"
                        "border: 1px solid #666666;"
                        "border-bottom: 0px}"
                  "QTreeWidget {"
                        "border: 0px;"
                        "outline: 0px;"
                        "border-top: 1px solid #666666;}"
                  "QHeaderView {"
                        "color: #000000;"
                        "border: 0px;}"
                  "QHeaderView::section {"
                        "background-color: #dddddd;"
                        "border: 0px;"
                        "padding: 2px;}"
                  "QHeaderView::down-arrow {"
                        "image: url(:/images/down-arrow.png);}"
                  "QHeaderView::up-arrow {"
                        "image: url(:/images/up-arrow.png);}"
                  "QListWidget {"
                        "border: 0px;"
                        "padding: 0px;"
                        "show-decoration-selected: 1;"
                        "border-top: 1px solid #666666;"
                        "alternate-background-color: yellow;}"
                  "QListWidget::item {"
                        "color: #000000;"
                        "padding: 2px;}"
                  "QListWidget::item:selected {"
                        "background-color: #dddddd}"
                  "QLineEdit {"
                        "border: 1px solid #aaaaaa;"
                        "border-radius: 3px;"
                        "padding: 2px;}");
*/

    setGeometry(100, 50, 700, 400);
    createWidgets();
}

BMManager::~BMManager()
{}

// This automatically closes the window.
void BMManager::closeEvent(QCloseEvent *event)
{
    event->accept();
}


// Create widgets.
void BMManager::createWidgets()
{
    main = new MainWidget();
    setCentralWidget(main);
}
